﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Business.Entities;
using Data.DataBase;

namespace Business.Logic
{
    public class PersonaLogic : BusinessLogic
    {
        private Data.DataBase.PersonaAdapter _personaLogic;

        public Data.DataBase.PersonaAdapter PersonaLogic1
        {
            get { return _personaLogic; }
            set { _personaLogic = value; }
        }

        public override void GetOne(int id)
        {
            return this._personaLogic.GetOne(id);
        }

        public override List<Business.Entities.Persona> GetAll()
        {
            return this._personaLogic.GetAll();
        }

        public override void Save(Business.Entities.Persona persona)
        {
            this._personaLogic.Save(persona);
        }

        public override void Delete(int id)
        {
            this._personaLogic.Delete(id);
        }
        
    }
}
